<!doctype html>
   
<div class="modal small hide fade" id="cuowuModal"  role="dialog" aria-labelledby="myModalLabel2" aria-hidden="true"  data-backdrop="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel2" class="myerror">错误</h3>
    </div>
    <div class="modal-body">
        <p class="error-text"><i class="icon-warning-sign modal-icon"></i>
        	<span  class="myerror">操作失败！</span ><br>
			<span id="cuowu-code"></span>
			<span id="cuowu-msg"></span>
		</p>
    </div>
    <div class="modal-footer">
        <button id="btn-cuowu-id" class="btn btn-danger"   data-loading-text="关闭中..."  >关闭</button>
    </div>
</div>

<div class="modal small hide fade" id="cuowuModal22"  role="dialog" aria-labelledby="myModalLabel22" aria-hidden="true"  data-backdrop="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel22"  class="myerror">错误</h3>
    </div>
    <div class="modal-body">
        <p class="error-text"><i class="icon-warning-sign modal-icon"></i>
       	  	<span  class="myerror">操作失败！</span ><br>

            <span id="cuowu-code22"></span>
			<span id="cuowu-msg22" ></span>
		</p>
    </div>
    <div class="modal-footer">
        <button id="btn-cuowu-id22" class="btn btn-danger"   data-loading-text="关闭中..."  >关闭</button>
    </div>
</div>


<script type="text/javascript">
$("#btn-cuowu-id").on("click",function(e){
	$("#btn-cuowu-id").button("loading");
	$("#cuowuModal").modal("toggle");
	$("#btn-cuowu-id").button("reset");
});


$('#cuowuModal').on('hide.bs.modal', function () {
	$.cookie("sessionId","",{ path: '/',expires: 0  } ); 
	$.cookie("userId","",{ path: '/',expires: 0  } ); 
	window.location.href="../account/sign-in.html";
 });
 
$("#btn-cuowu-id22").on("click",function(e){
	$("#btn-cuowu-id22").button("loading");
	$("#cuowuModal22").modal("toggle");
	$("#btn-cuowu-id22").button("reset");
});
</script>
